package com.img.test;

//饿汉模式
public class Singleton {
    private static Singleton s = new Singleton();
    private Singleton(){}
    public static Singleton getInstance(){
        return s;
    }
}

